<template>
  <div class="avatarInfo-container">
    <!-- 个人信息页===头部组件 -->
    <el-card class="box-card1">
      <!-- 头像 -->
      <!-- 昵称 -->
      <div class="avatar">
        <!-- <el-avatar :size="large" :src="avatarUrl"></el-avatar> -->
        <el-avatar :size="70" :src="avatar"></el-avatar>
        <div class="nickname">
          {{ nickname }}
        </div>
      </div>
    </el-card>
    <el-card class="box-card2">
      <div class="money-box">
        <!-- <i class="el-icon-attract"></i> -->
        <div class="money-item1">我的余额:</div>
        <div class="money-item2">0</div>
        <div class="money-item1">可用余额:</div>
        <div class="money-item2">0</div>
      </div>
      <!-- 余额 -->
      <!-- 可用余额 -->
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'AvatarInfo',
  data() {
    return {
      nickname: '昵称',
      avatar: 'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png',
      // 余额
      balance: {
        type: Number,
        default: 0
      },
      // 可用余额
      balance_use: {
        type: Number,
        default: 0
      }
    }
  }
}
</script>

<style lang="less" scoped>
.avatarInfo-container {
  .box-card1 {
    width: 100%;
    margin: 0 0 10px 0;
    .avatar {
      display: flex;
    }
    .nickname {
      margin-left: 20px;
      font-size: 30px;
      font-weight: 600;
      line-height: 70px;
    }
  }
  .box-card2 {
    width: 100%;
    // margin: 0 0 10px 0;
    // padding: 10px;
    .money-box {
      font-size: 11px;
      display: flex;
      .money-item1 {
        margin-right: 6px;
        color: orangered;
      }
      .money-item2 {
        margin-right: 6px;
      }
    }
  }
}
</style>
